package com.bibi.hanshunping.chapter05;

import java.util.Scanner;

public class If02 {
    public static void main(String[] args) {
        Scanner myScanner = new Scanner(System.in);
        System.out.println("请输入年龄");
        int age = myScanner.nextInt();
        if (age > 18) {
            System.out.println("年龄大于18岁，已经成年！");
        } else {
            System.out.println("未成年！");
        }

        System.out.println("---end---");
    }
}
